package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllPeople(people map[string]interface{}) (error, []models.People, int64) {
	err, peopleData, total := dao.GetAllPeople(people)
	return err, peopleData, total
}

func DelPeople(id string) error {
	err := dao.DelPeople(id)
	return err
}

func UpdatePeople(people models.People) error {
	err := dao.UpdatePeople(people)
	return err
}

func AddPeople(people models.People) error {
	err := dao.AddPeople(people)
	return err
}
